package cn.com.xyc.pojo;

import java.util.Date;
import java.util.List;

public class Admin {
    private String id;

    private String username;

    private String password;

    private String activation;

    private String icon;

    private Integer status;

    private Date createDate;

    private Date lastLoginTime;

    private Date lastLogLocation;

    private String lastLoginIp;

    private String salt;
    
    /*新增字段 start*/
    private List<Role> roleList;
    /*新增字段 end*/

    
    
    public String getId() {
        return id;
    }

    public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getActivation() {
        return activation;
    }

    public void setActivation(String activation) {
        this.activation = activation;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLogLocation() {
        return lastLogLocation;
    }

    public void setLastLogLocation(Date lastLogLocation) {
        this.lastLogLocation = lastLogLocation;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp == null ? null : lastLoginIp.trim();
    }

    public String getSalt() {
        return salt;
    }

    public String getCredentialsSalt() {
		return username + salt;
	}
    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }
}